package com.atguigu.eduservice.service;

import com.atguigu.eduservice.entity.EduCourse;
import com.atguigu.eduservice.entity.frontVo.CourseFrontVo;
import com.atguigu.eduservice.entity.vo.CourseInfoForm;
import com.atguigu.eduservice.entity.vo.CoursePublishVo;
import com.atguigu.eduservice.entity.vo.CourseQueryVo;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author achang
 * @since 2022-04-18
 */
public interface EduCourseService extends IService<EduCourse> {

    //添加课程基本信息方法
    String saveCourseInfo(CourseInfoForm courseInfoForm);
    //根据课程id查询课程基本信息
    CourseInfoForm getCourseInfo(String courseId);
    //修改课程信息
    void updateCourseInfo(CourseInfoForm courseInfoForm);
//    根据课程id查询课程确认信息
    public CoursePublishVo getPublishCourseInfo(String courseId);
    void pageQuery(Page<EduCourse> eduCoursePage, CourseQueryVo courseQuery);
    public boolean removeCourse(String courseId);
    public List<EduCourse> selectHotCourse();
    //前台多条件分页查询
    Map<String, Object> getCourseFrontInfo(Page<EduCourse> pageCourse, CourseFrontVo courseFrontVo);
    //前台根据课程id，查询课程基础信息
    CoursePublishVo getBaseCourseInfo(String courseId);

}


